const columns = [
    { prop: 'name', label: '模版名称', width: 300 },
    { prop: 'classFullPathJson', label: '所属分类', width: 400 },
    { prop: 'comment', label: '介绍说明', width: 300 },
    { prop: 'enabled', label: '启用' },
    {
        label: '操作',
        width: 300,
        operations: [
            {
                prop: 'edit',
                label: '编辑'
            },
            {
                prop: 'delete',
                label: '删除'
            },
            {
                prop: 'item_config',
                label: '模版配置'
            }
        ]
    }
]

const formItems = [
    {
        label: '交易分类',
        prop: 'classIds',
        name: 'cascader',
        props: {
            value: 'id',
            label: 'name',
            children: 'subClasses'
        },
        validation: true
    },
    {
        label: '模版名称',
        prop: 'name',
        name: 'input',
        validation: true
    },
    {
        label: '介绍说明',
        prop: 'comment',
        name: 'input',
        type: 'textarea'
    },
    {
        label: '启用',
        prop: 'enabled',
        name: 'checkbox'
    }
]

export default {
    columns,
    formItems
}
